package com.glc.hms.system.controller.web;

import com.glc.hms.common.data.ResponseData;
import com.glc.hms.common.data.SuccessResponseData;
import com.glc.hms.system.model.vo.JavaSystemInfoVO;
import com.glc.hms.system.service.ISystemInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Santa
 * @since 2019/12/5
 * 一些杂七杂八的接口
 */
@Slf4j
@Api(value = "系统", description = "系统接口", basePath = "/webApi/system")
@RestController
@RequestMapping("/webApi/system")
public class IndexController {


    @Autowired
    private ISystemInfoService systemInfoService;

    @ApiOperation(value = "系统信息", response = ResponseData.class)
    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public ResponseData getInfo(){
        JavaSystemInfoVO javaSystemInfoVO = systemInfoService.querySystemInfo();
        return new SuccessResponseData(javaSystemInfoVO);
    }

}























